class Template_mixin(object):
    """html报告"""
    HTML_TMPL = r"""
        <!DOCTYPE html>
        <html lang="en">
        <head>
            <meta charset="UTF-8">
            <title>自动化测试报告</title>
            <link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
            <h1 style="font-family: Microsoft YaHei">自动化测试报告</h1>
            <p class='attribute'><strong>测试结果 : </strong> %(value)s</p>
            <style type="text/css" media="screen">
        body  { font-family: Microsoft YaHei,Tahoma,arial,helvetica,sans-serif;padding: 20px;}
        </style>
        </head>
        <body>
            <table id='result_table' class="table table-condensed table-bordered table-hover">
                <colgroup>
                    <col align='left' />
                    <col align='right' />
                    <col align='right' />
                    <col align='right' />
                </colgroup>
                <tr id='header_row' class="text-center success" style="font-weight: bold;font-size: 14px;">
                    <th>个数</th>
                    <th>Key_time</th>
                    <th>安装</th>
                    <th>冷启动</th>
                    <th>热启动/th>
                    <th>CPU</th>
                    <th>卸载</th>
                    <th>图片路径</th>
                    <th>品牌</th>
                    <th>型号</th>
                    <th>版本号</th>
                    <th>分辨率</th>
                    <th>设备ID</th>
                </tr>
                %(table_tr)s
            </table>
        </body>
        </html>"""

    TABLE_TMPL = """
        <tr class='failClass warning'>
            <td>%(implement_def)s</td>
            <td>%(version)s</td>
            <td>%(install)s</td>
            <td>%(cold)s</td>
            <td>%(hot)s</td>
            <td>%(cpu)s</td>
            <td>%(uninstall)s</td>
            <td>%(screencaps)s</td>
            <td>%(Mobile_phone_brands)s</td>
            <td>%(phone_brands_version)s</td>
            <td>%(Android_version)s</td>
            <td>%(phone_px)s</td>
            <td>%(phone_code)s</td>
        </tr>"""
